package com.nosnow.statistics.invoking;

import com.nosnow.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author by bingHeng
 * @version 1.0
 * @Create 2020/5/31 20:54
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    // 根据日期查询某一天的注册人数
    @GetMapping("/ucenter/countRegister/{day}")
    R countRegister(@PathVariable("day") String day);
}
